package com.quarkus.db.resource;

import com.quarkus.db.service.DbOperationService;

import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

/**
 * @Author: TongRui乀
 * @Date: 2021/3/21 11:14
 * @description：
 */
@Path("agroal")
public class AgroalResource {

    @Inject
    DbOperationService dbOperationService;

//    @Inject
//    DbReactiveOperationService dbReactiveOperationService;

    @GET
    @Path("getById1/{id}")
    public String getById(@PathParam("id") Integer id){
        return dbOperationService.getById(id);
    }

//    @GET
//    @Path("getById2/{id}")
//    public Uni<String> getById2(@PathParam("id") Integer id){
//        return dbReactiveOperationService.getById(id);
//    }

}
